/*
 * @Author: toString
 * @Date: 2024-07-26 13:53:36
 * @LastEditTime: 2024-07-29 23:40:35
 * @LastEditors: toString
 * @Description:
 * @FilePath: /token-for-token-front/src/require/api.js
 */
import request from "./require.js";
// const userId = "6698f0bed383c09d7b7e317e"
// const userId = "66753a1163240000f30061e5";
const userId = "67163411df05000064005814"; // GHM :  67163411df05000064005814
// const userId = "66165c04376b6f38db64c1b5"; // 中国心 :  66165c04376b6f38db64c1b5

// 兑换 /createChainApply
export const createChainApply = (params) => request.post("/createChainApply", { userId, ...params });

// 申请记录 /api/getChainApplyList
export const getChainApplyList = (params) => request.get("/getChainApplyList", { params: { userId, ...params } });

// 获取链列表 /api/getChainList
export const getChainList = () => request.get("/getChainList", { params: { userId } });

// 根据链id获取token /api/getChainTokenList
export const getChainTokenList = (params) => request.get("/getChainTokenList", { params: { userId, ...params } });

// 获取比例 /api/getRate
export const getRate = (params) => request.get("/getRate", { params: { userId, ...params } });
